
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="com.wlcorp.forcazamis.sys.util.CommonUtil" %>
<%@ page import="java.util.List" %>
<%@ page import="com.wlcorp.forcazamis.domain.pi.PiproductDetail" %>

<%
	List piproductList = (List)request.getAttribute("piproductList");
%>
<html>
<head>
	<title>翻单选择</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-Control" content="no-cache"><meta http-equiv="Expires" content="0">
	<link href="${pageContext.request.contextPath}/css/css.css" rel=stylesheet>
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/button_css.css" type="text/css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/form_css.css" type="text/css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/table_css.css" type="text/css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/pagetitle_css.css" type="text/css">
	<script language="javascript" src="${pageContext.request.contextPath}/script/validator.js"></script>
	<script language="javascript" src="${pageContext.request.contextPath}/script/calendartime.js"></script>
	<script language="javascript" src="${pageContext.request.contextPath}/script/ajax.js"></script>
	
</head>
<body>
<center>
<table id="" width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#999999">
	  <tbody id="piproductTable">
      <tr bgcolor="#E7E7E7">
      	<td>选择</td>
      	<td style="visibility:hidden;display:none">产品ID</td>
      	<td style="visibility:hidden;display:none">样品子类ID</td>
        <td>客户货号</td>
        <td>我司型号</td>
        <td style="visibility:hidden;display:none">COL</td>
        <td>数量</td>
        <td>单价</td>
        <td>金额</td>
        <td>分类</td>
        <td>REMARK</td>
        <td>序号</td>
        <td>页码</td>
        <td style="visibility:hidden;display:none">旧编码</td>
        <td style="visibility:hidden;display:none">颜色描述（英）</td>
        <td style="visibility:hidden;display:none">尺寸</td>
        <td style="visibility:hidden;display:none">电镀色号</td>
      </tr>
      <%
      	//System.out.println(storageIn.getStorageInSampleSet().size());
      	if(null != piproductList){
      		for(Iterator iter = piproductList.iterator();iter.hasNext();){
      			PiproductDetail piproductDetail = (PiproductDetail)iter.next();
      			
      %>
      <tr id="<%=piproductDetail.getProductId()%>" bgcolor="#ffffff">
      	<td><input type="checkbox" name="isSelected" value="1"/></td>
      	<td style="visibility:hidden;display:none"><%=piproductDetail.getProductId()%></td>
      	<td style="visibility:hidden;display:none"><%=piproductDetail.getSubSample().getParentSample().getSampleId()%></td>
      	<td><%=piproductDetail.getCustProdCode()%></td>
        <td><%=piproductDetail.getSubSample().getParentSample().getSampleCode()%></td>
        <td style="visibility:hidden;display:none"><%=piproductDetail.getColor()%></td>
        <td><%=piproductDetail.getProdCount()%></td>
        <td><input class="input" type="text" name="price" value="<%=CommonUtil.format2Scale(piproductDetail.getPrice())%>" maxlength="20" onkeyup="getTotalPrice(document.getElementById('<%=piproductDetail.getProductId()%>'))" style="width:60px" readOnly/><input class="input" type="text" name="priceAdd" value="<%=CommonUtil.nullToStr(piproductDetail.getPriceAdd())%>" maxlength="20" onkeyup="getTotalPrice(document.getElementById('<%=piproductDetail.getProductId()%>'))" style="width:60px" readOnly/></td>
        <td><%=CommonUtil.format2Scale(piproductDetail.getTotalSum())%></td>	
        <td><%=CommonUtil.nullToStr(piproductDetail.getType())%></td> 
        <td><%=CommonUtil.nullToStr(piproductDetail.getRemark())%></td>
        <td><%=CommonUtil.nullToStr(piproductDetail.getOrderNo())%></td> 
        <td><%=CommonUtil.nullToStr(piproductDetail.getPageNo())%></td>
        <td style="visibility:hidden;display:none"><%=CommonUtil.nullToStr(piproductDetail.getOldCode())%></td>
        <td style="visibility:hidden;display:none"><%=CommonUtil.nullToStr(piproductDetail.getEcolor())%></td> 
        <td style="visibility:hidden;display:none"><%=CommonUtil.nullToStr(piproductDetail.getSize())%></td>
        <td style="visibility:hidden;display:none"><%=CommonUtil.nullToStr(piproductDetail.getSubSample().getPlateColor())%></td>
	  </tr>
	  <%}}%>
	  </tbody>
</table>
<center>
${message}
</body>
</html>